refactor isolate create & environment