added code to bypass reading errors