fix comments
move checking for username into the queryServer method to make sure that global conf is ready