massiave refactoring old video application