layer advs

templates for layer, xml