added command to build index