added location to resource as a class