bug fix; print output in notebook