refactored connections list into serverstate