adding option to activate profiler
fixed buffering of gzip, sed streams