add some settings constants and helpers for localStorage