refactor RESOURCE_TYPES