use `inspect` for opts