added session and kind of redirection