pass errors and results to done callback