a bunch of comments in tr_server.erl