write coordinates to klpcoord