local storage + cleaning functions