node callbacks for write.js