make segment creation work