fix #503 add support for template exists requests