first working version of MR job