fixes #33 by adding id to p.lead
addresses and fixes #29