added support for related(). closes #301