updated appa_template