fix inheritance and callback usage in REST models