extract scripts