separate direction from seg name

for better awk compatibility