bugfix for env variables