added the optional userid field to the C# master scan API