add restrict to the server