add some useful apis