Fix for replacement mapping issues
Add startup scripts
Some iOS related fixes