err is passed to the callback a few lines below