modify the ios startup code