make highlight function pluggable