refactor to have a nice _remoteJson function
update samples