modified to work on server