support for suggestionsCallback function