main: fix proxy initialization and setupCluster

Fixes #1360 and a bug in NewClusterFromString.
why? you wrote it this way :-)