debugging json object
 merging with Valeriy updated code
mergin still
updated to joaquins latest version of the code