handled exceptions and started logging them
added sessions