added multiregion support to getrank