fixed the script to deal with issues when the quotes file doesn't exist