add -q option to the script for quieter operation