integrating shred from aerotech fork (pr 57)