moved environment setting back inline with rake call