refine rake file