finally got routing working (to an extent) and registration working