wrapper to register functions
implements of breeak;
fix the lack of cb.afterParse if not parsed successfully