pushed block logic into the class JBBlockJob