tokens: In the latter part of the Qing dynasty , Tanshui was the largest port in Taiwan , and was the " customs headquarters , " also charged with overseeing port activities at Keelung , Tainan , and Kaohsiung .