fixes to rest calls, and update for greeting example