working on full scripting implementation