changed config to json, pg cluster support.