added error data, tweaked scripts