added first version of the rule engine! this is awesome