build out of dir