added reader capability and tests