fixing analysis scripts