put getpass compatibility function into own file