added launching and stopping the kernels