add read_ndx.h