add -l option and reduce debugging output