more plotsof replica comparison plus coded up optimal loss functions