started more work on rule wrapper and lua message