add environment to rake task so it will work