local and session storage wrapper