make copy plugin use localstorage if available