recovering templates