second bug fixed.  better comments are in the fix that's in develop.