error out if text directory isnt there