Revert "optparse socket"

This reverts commit eb2699d0871db6b6928173112345f7ef92d182e0.