Fix up before filters and auth stuff.