make contructDirectories blocking