small fixes to plot pipelines
added check for history.mat