added script processing handler