update generate_mo for plugins