first version of script.