refactoring in grace hash join & bug fix in scheduler for flex reads