get code from url and mirror back