writing addresses; reading envvars