for unix domain socket implemtation