some rule fixes