preliminary work for go daemon and socket