added script iterator