removes stranded console prints