he's on the side of the pirates, but like all pirates, he has strong loyalties to no one but himself. He is dangerous in his own way, and maybe has some big flaws, but he's aligned with the pirates eventually. at the beginning he seems more of an enemy because they need his help, so they have to bargain with him... but he's part of the pirate brethren. does that help?