Fix auth in remote_srv + debug fixes