minor refactoring
added traffic shaper