allow log level to be set at runtime and make password prompt optional