added registration and redirection