add load_state and save_state internal functions and ensure the save and load are run before and after a function call
add load_state and save_state internal functions and ensure the save and load are run before and after a function call

altenwald/ephp,bragful/ephp