fix for linkage error thanks to Edgar, some more output