added squelch option
added original code credits