removed some local storage functions