minor mods to statedeptcables script