added a bit of oauth support