implemented relatedTo with directions persistence