add hook for local settings