make new configuration optional, add rank as parameter