sphlib repository (fork)