cleaning up some file index stuff