script changed to handle oauth