fix getAddresses static usage