making facebook and github oauth work