drop debugging, print json in the end