use cnl as API server