take input and output as commandline arguments