initial working code
removing dead code
moved client secrets behind interface