remove handler() and add redirect() instead