found an issue whereby not all php installations allow for $_ENV use by default, used getenv instead