add condition lib