Start with the maker of the lites and see if they have suggestions. Is your whole assembly a custom or just the bulb? I recently made and installed LED's in my bed rails using an 1157 socket and the LED version of the bulb. There were grounds coming out of each tail light (total of three wires per side coming out of the lite) two function wires one ground.