remove lib after copy