Changed the repo specs

Also fixed some crashs if the server was unreachable in QueryProtocol