with this refactoring, resource type definitions become available on the server side - in fact client and server share the same info