moving socket to a build file