code beautifying, experimenting with file streamer