case, if and receive autotemplates