scripting put-in almost done