code in equip.py stream.py and modified smlreader.py