handle environment variables