update usage of with in isolate