make sure it is a resource