added resource protection
update dnlib