start of visualization, various bugfixes