started working on main server, need to implement sorting server protocol