add stacktrace, tests for processing