better names for thread pools; improved efficiency in replica ordering; removed some frequent string concatenations