add local storage
fix all broken things