better handling of the relate --all case