added scanchain's CheckTime() fixes