elegant dynamic command parsing for visualize