initial changes for deprecated _checkpathconstraintsfn
fix last problems with new constraint functions
cleanup debug statements