changes to sfs.c and sfs.h