added a verbose flag