changed search to use methods instead of publish