added environment variable for chain length and node timeout