improve moveto and lineto (...etc).