minor changes to socket stuff