clean up, make getCover index work