add config.json and fix relative paths
add search & count