added relationship filtering.