base class for OSM elements; some improvements