added stack trace for nonintentional errors, and bugfixes to get pipeline to run