updated to-do
added monitor_policy and stats
removed unused stat code
fixed bug in determining period for historical counts