enhance the script to support various bootmgr