copied from scm.mmbase.org