EXPERIMENTAL refactored atomic, transaction and orelse to only return principal value