add out of range detection for abbyy