added s2w.h