mongo migration scripts and full refactoring of widgets