fix more bugs

- note that record_stats currently doesn't work if
  the remote service ISN'T running