log uncaught exceptions
Added support for getting single object