add running script function