fix #3, maybe #2, output err when err is set to callback