modified how no flag ls is handled