better support for custom resources which are not db models