fixed apigen command