trying to add callback to capture socket result