finalize and publish search API