simplify brico, only export brico fn and return api stream