replacing getpass with getenv