modified compile script