make sockets interface cleaner, seem to have lost decryption