fixed a few bugs.  Decided to pray it works.