implementing redirection
commented out history, cd and redirection barely working