update mostly working, redirect is not