added the dirParse middleware