adding check for libkey from jeff's email