we may want to do a tight for loop here

(cc @kselden @ebryn)