[factory] api must be added before any actions (currently custom action ...

...added before api.)