there is no such thing as a two way switch, most people mistake this for a single-pole switch which is easy to wire the hot goes to one screw ( dosent matter just dont hook it to the ground (the green screw)) the other wire (the other black one) comeing from the light to the other screw the grounds (the gold wires) tie togather then pig tail to the green screw. the whites tie togather. if u need any more help just email me im training to be electrican so i might not know everything but i can try and help.