Logging polishing

this branch added interfaces into the exception and problem handling