use indexCreated macro and add correct back compat