added localsettings hook for dev