added more functionality to scripts