added verbose mode which enables script debug output