re-added editing of main.xml