ghc 7.6
pullout midval and formatCoordinate
specifications links
save some bytes by using relative points