add environ flag for testing