added support for preprocessing environment variables