Enh: fixed some problems in hoauth extension use