Add outer api fnc