sets up a redirect if default opc is hit