(Hopefully) resolving problems with environment variables