added grub insertion code