making use of stream command instead of internal