basic socket behavior

not functioning correctly