..moved discovery of parent after the status (copy-paste to wrong place)