update server, make it support mac