add visualizer and fixes for osx