sed in place for advancemame changes