solve conditional on oauth