recognize join path automatically