reviving bmc code