update mschema definitions
properly export resource methods