first steps towards the update handler
writeJSON