rename model to resource