Add default functions and fix multibag upgrade/downgrade