build backend and index