most of the code in place for multiple servers