build project hierarchy