use a more secure string comparison "1-" instead of parseInt. #993
pull fetchSingleRev out of replicate function. #993