consolidate rest calls