part of darcs patch Mon Sep 19 22:00:42 EEST 2005 Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>