update gem to accept environment variable