main is no longer parameter to statusRemote and statusRole
now only depends on auto mode
removed replaceRemoteRole as obsolete