enh: mode option now also applies do directories