minor changes to imports/return values

added Status Mask support