add sed sandbox patch adopted from Assaf Gordon