break out optID logic in preparation for default config