updated plugin system
added update_mode