added some stress-testing code