-- first pass at adding code for attaching kernel