refactor REST api
suppress references to localhost