wiring callbacks for handling API results.