check for active tag, add debug for rules