access: keep stream input in a private struct