added code for testing on the server