fix accessing internals