allow access to result in code
 was messed up
fix tests
change to __result for improved readability
add __ruleName to action