add localStorage api