make standardoutput handling easier to understand