more prep work for optimizer