replaced 'mapred' with  generic 'backendOpts' control in anticipation of other backends, fixed some bugs