well, I shouldn't have submitted this commit at all.
a coworker of mine is working on a cleaner (avoiding this loop) and more general way (not limited to "from") to do this, I (or he) will submit another commit instead