several changes to make selecting, plotting and requesting irregular polygons/lines possible