register should also work with server