improved performence of the component iterator. Added shbang.