update html
refactoring of imports and generic optimizer script