fixing sed issues