preparing for the server