support binary output