json request from server for snapshot now works