parsing directions