added traffic shaping