added auto exit if accessed directly in itau template