adjust how layers are encoded in xml