restructured kernel distribution. still has mismatches in output