add ap, ftell date error