env variable production wasnt working; moved to tmp/production check