added scripting capability