added directory handler and intergrated with clinetManager