added rulemachine stuff