- be a bit more careful about closing the session
- don't overwrite the response
- make saving and updating a resource a bit more safe