franco.Kernel with some modifications