changed putifabsent to put in the server code