added basic catch for accept and 10 connections for listen