refactored the rake new task