added socket counter