added scripting engine- not completed