adding API methods