modified the generic reader due to BED support