some notes on the sync gateway