added script3 and parsed qs algo