conditionally point segmentio at test/prod