core: implement NextAddress