add hotplugging control and rewrite set on boot