fixed output bugs
some more output fixes