add text extraction, add a couple more options for debugging.