great job pulling this out into a rake task