add debug messages.
move and change directory.