pass output path to clients
check for more boost libs
write json to gzipped output file