trying to get resource to work