made RegisterResources a Task