added forked section for dir proccess