improved layer group support