It's a blessing that jurisdictions are so clear and concise because ships are flagged with the country they are operated from. Just imagine the huge amount of legal issues if someone registered their ships in all sorts of shady places to exploit more workers and save on taxes! What a nightmare that would be.