added smf
Willy Liu changes