* add local to all variables
* change quiet from 1>/dev/null to &>/dev/null