get data and store it in local storage, print for debug