refact dir path