Still some problems. You have no option, it MUST be 20 segments or less. Dropping the YYZ-ORD is good for 2 reasons: lowers the total to 20 and you don't exceed the 6 free segments in N.America. But, the bigger problem is that you have 2 trans-cons, BOS-SFO and SFO-JFK. You are only allowed 1. If you like most of this itinerary, keep the YYZ-ORD, and drop the SFO-JFK-DUB. Instead, go LAX-DUB on EI, with a separate ticket SFO-LAX. Not sure how EI fits in with the coach class earning status/miles though.