moved leaky bucket variable onto the session