sed was a bad idea.