fixed a few authorization errors.