github auth now works - also fixed a closure problem.