use error-first callback style
Added missing err in callback