add check on library being in list of infomedia libraries