mask_rank, and mask_file now take multiple arguments