allowed password from commandline, too
refactered away PreCommand()