filter commandt paths better