use related(key) for attach/detach