implement callbacks for gotr