add some plot functions and model-based kernel sum rule