layers to other file, add localstorage