find compounds for a pathway inside a promise