first write of script