refactored load to rake task