rebuild resources to be more restful