added debug statements to oauth change to check behaviour