commit before and server comunication