added -v switch