improving redirection feature of register