fix direction api