added some basic socket code, but it needs to to be abstracted some on our end