fix rest calls