added BlockRule and renamed RelativeRule as ResourceRule