added command line acceptance of username and pwd