crc fuction added and non-critical fix to sfs