part of darcs patch Thu Sep 22 19:55:01 EEST 2005 Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>