part 1 of the apptimizer upgrade - init + part of index
Completed apptimizer upgrade. Still need testing.