finalized scripts v2