added functionality to run the script