adding option -i, -o