changed -d flag to -s
changed debugMode to jsonOut
app should send json data to stdout