added error handling for Get() and Create()