fixed analysis scripts