FIX: read header, coorect method reset_next