removed debug logging and fixed local storage bug