on create return a 201 created status code, and code clean up