initial file checking