some tweaks to make it go faster; basically just measuring how fast messages are coming in