mastered plot.curves, but next time lattice/ggplot2 :)