behave gracefully in the case of page reload