Fixed some exception handling and added multiple server structure