added proxy, getopt, logfile