add mock sg check function