added -i flag to cli