updates to dir2cast.

Here is the pull request you asked for.  if you need me to do / change anything let me know.