improved logging
improved exception tracing