reworking error on oauth