started to implement -i command line option
started to implement -i command line option