add fns to bcapi, and update utility stlye and msg