improve directory installation