updating for distribution & localstorage