added the code to include extra kernels or use kernel aproximations