adding libs and index