adds minor print commands to make debugging easier.