script tweaking