change directory to tangle
change tangle directory
fix idempotency check
example of distributed computing with nats