replaced byte reader by something a lot faster