cnc: split end points, functions in different model files