some improvements to name_scan and name_filter commands