minor fixes to get sock reading/writing minimally working with github.com/quartzjer/worm