it has been changed how the server works, to avoid serializable problems