ported LC example from unbound