setup env for cluster