fixed namespace OAuth, some better authentication handling