recompiled for bandwidth and overwrite options at cdh5.2.0