Revert "made socket library"

This reverts commit b632e164fd9179d9f27c14954647b8fc7ede5982.
Revert "Revert "made socket library""

This reverts commit 81be80a7e51d2a98f4a541afef61496b06844e7d.
fucked up resets