add done() so that errors are reported