some more work on output