refine scala project