perfect socket callback..