adding OAuth support