change input and output format. use command line option