definitions - template setup