dyn_named: check return values