WIP: support multiple wals

you do not need this helper function. and actually we do reload the state.