replace old coffee template handler