refine settings so they don't depend on DEBUG setting and can always be overwritten by custom settings