from https://singularity.svn.codeplex.com/svn