boss script, three phases

adjustments