changes to plotting internals