change the name of the flag to persistentConnection