handle encrypted library