initial nearly-literal copy from SourceForge SVN