some improvements in plot, bug in dWs update