another stab at reading out environment variables