added a verbose switch