moving segmentio to secrets