first attempt to implement email bundling, needs more work