put lower() in load_rules(), prefix matching might not work