added auto_segment script