modify to use Platform.mixin instead of window.mixin