detect user first, then add upstream remote