replaced DT_DIR's with st_modes