run sed was a bad idea