run the resource