implement new output function which Fixes #2