move getSearchterm to overrideable method