add logging for direction