added script and some changes
added a script