remaster libsf to base source code as of Jun.26.2013