added search and resource routes