extracted relaxFn to dart_ext