fix apihandler after changing schema libarary