add save to resource wrapper