support new patterns for testing
fix plotter.py