added initial support for Model.single_resource()