changes to loadup procedure for reinitializing stateful app