some attempts at performance measurement and rate control