make query for rejections more efficient
made Dispatcher module in preparation for linear flow support