test stream end
refactor: rearrange for making sense
add source location info
1.1.0