rewriting legacy OS for new iron