finish dir stuff