weird thing done by script. Should probably use a better method than sed