added initial support for resource types