bugfix direction parsing