add same code to server