added call to checkfile