fix some auth problems