added 2 functions to public api