make branch of reload_plugins optional