added extra iterations to getDirection to make up for lost ones when readRespons() throws error