put exit in redirectTo()