FIX: generate api before expansive