my $mstat = 0;