rebuilt the overlay script