new rules engine implementation with ace editor