moved legacy index functionality to legacy package