determine which device is server
merge code