actually using rest api