scan and redirect