refactor our task to set rails env