add exit in header redirector