corrected some rest calls.