Rel 4.0.13 patches

Not sure what happened here but this is a junk pull request and I can see how to delete it.

tom