creating, updating and removing a resource is working, but needs improvements