refactor bin/mini-harp and index