added -vi flag