added first version of script