initialize dir