simplified environment variable handling