add init code and exe