basic checks for joins