make it work on the server too