fix it so we read the output properly