factor out common user config