good net and local storage logic