send environment state to client
closes #689