use new rest api package