printing to proper outputstream now