set direction is async

direction file contains sometimes a line terminator