magnolia add main file