fix to utils for ist
Merging minor changes.
Quick fix for empty file.