reverting changes and add / to redirection