magic_index library