add basic support for isolates, not complete yet