also tested my code by ignoring $block_length and using that var for other purposes. got 360. so, even though it's just an extra var basically, it still shortens the script a bit.
_________________________
!

download KiXnet