add code generator
fix remove path functionality