change reader mode to read-only
fix distcheck to work with make check