added visualize1 mode, fixed others