fix many bugs. see ChangeLog.
20 files changed