save all the datas from template, fixed scope names