split files into server, client and common