add generic support for fragment types.

Testing steps: 'scons' + KS