added REST API functions