setting saerchpath after ensuring schema