modify directory Socket