check if demeter chain has already been established, this fixes issue #332