use location struct on server register