updated task to accept preview and verbose flags