dirty fix for kernel script not working