upgrade template to cortex@3.8.4