make app search be a library