script reworked