origin version with server and client