better parse error message that gets a stack trace
remove log
clean up tests