add --proxy support to command line