added global wait on function for reviving all models