refactor search routing
figuring out require/modules