tweaked many scripts