made dir more portable