brandon's socket connection implemented wooooo