add code to allow imports via localStorage