more work on the atom stream
working atom output