still getting error and no callback as expected, try 'onwriteend'