init client & server dir