added support for temper if exits