add readDir util
allow readDir to return stat
mostly works. mostly