template cleanup for coffee