adding API for execute-script