build dir checks