added download file checking.