changes in script to get library read depth