added ability to check state of debug_mode and show_swaps