removed unused code
added web api oauth