rewrite bundles processor in monadic way.