simple serial reader
use unint for frame counts