added local storage functionality..not wired in just yet