f - fixes socketting npe and general sockets fixes