add server code return on register