added directions functionality