some updates to deal with ncl_join case