prototype of index serving