makes it possible to use with layergroups #2