fixed extra info going into client when redirectring stdout