fixed authorization problems