a couple minor bug fixes, optimizations, visualization