add rules engine support