main: fix proxy initialization and setupCluster

Fixes #1360 and a bug in NewClusterFromString.
could we just use NewClusterFromString here?