appalling hack to pick up env in production