make oneof() available for scripting