initialze the working dirs