adding uid to change resource type