updated with resource call and json format update