functions for using newsleopard APIs