parse mixed segments