handle D-8 flow directions