cleanup
basic implementation of flexible number of fields in the visualizer