handle readonly library