moved flags to print stream init function