refactored sockets
added boilerplate user requests