added a new script and minor changes