added handling of wms layer elements