core: add Prev/Next address methods for cfg