first parameter of callback should be error object, fix for #4