bundle together foreign key checks