added the teensy changes for reading by frame