fix/simplify the 'cd' command, but other parts still need work.