concat streams using concat-stream module
output optimization