fixed a few bugs.
various other updates.