cleaning up node calling code, added scripting action