use node-then to wrap fs