added new directory support