allow passing status to wait