use FileSink as std output.