split PID and constraints from main